# a = input("输入一个整数")
# a = int(a)
#
# if a % 2 == 0:
#     print('偶数')
# else:
#     print("奇数")
#
#


year = int(input('请输入一个年份'))

# if year % 100 ==0:
#     if year % 400 == 0:
#         print('闰年')
#     else:
#         print('平年')
# else:
#     if year % 4 == 0:
#         print('闰年')
#     else:
#         print('平年')

if (year % 100 != 0 and year % 4 == 0) or year % 400 ==0:
    print('闰年')

else:
    print('平年')